<?php
namespace app\index\controller;

use think\Controller;

class Index  extends Controller
{
    public function index()
    {
        $this->redirect('forum/index/index');
        return view('index');
    }
    public function detail()
    {
        return view('detail');
    }

    public function upload()
    {
        return '<form action="' . url('core/file/uploadImage') . '" enctype="multipart/form-data" method="post">
<input type="file" name="image" /> <br> 
<input type="submit" value="上传" /> 
</form> ';
    }
}
